update for attribute