using fmodf for repeatForever