use convertAttribute() also to add attributes