nano refactoring