added queue method
added queue method