added clean_attributes
added clean_attributes spec