queue functions added + test uncommented