adding remainder handling to list process as well