assignment4 polishing