refactoring - removing unecessary method.