added integer and remainder functions