add function to retrieve the first item in the scan code queue