bar code scanning helper