remove debug statement
explain error handling