normalize attrebutes