queue add/subtract functions to prevent misreads