removed timeOut trycatch block