try to fix loop