generating queue