go green, refactoring is a must