refactor - removed unnecessary code now replaced by the logger