modfiy port attributes