write queue in short codes