loop for boost