find remainder and delete