adding to get rid of try catch