second commit

added exception handling