associate rem function with % operator - resolves #24