added create queue function