clean code error handling

12/27/2020