removed setPristine code.