test modification
assignments moved to try block