replaced getter with attr_reader