added try catch and also started target analysis