removed faulty error handling code; no error handling implemented