fmod used insted of %