replace modulo by fractional