loop and fix