cleaner resolution code