working through exception handling.