normalize attributes