removed stuped try catch and fixed the exception