wamp2 5 step small refactoring