finding remainder