refactoring syntax code for hashe assignment (:hash => to hash:)