creating a call back function to save the unmasked value on scope