fixed filenames and changed set_attrs to my_attr_accessible