updating code for reasons