transform attributes in final