work in progress- handle run time exception