deleted exceptions, handled erros in code