add values method to queue