added some refactoring notes