bar code test of this function