convert attrs to base