move attr_reader declaration to correct spot