change accurding to the form