previous code that is going to be refactored