adds fix method
first refactor