fix remainder