rolling in queue code
fixing variable names