attribute tidy up