changed beforeSet to apply changes to newValue and pass it to next functions