fixed modulo. now only workds for integer.