add attr_accessible for version