changed original work to a method