repetition queue compilation logic