polishing off code