add e.printStackTrace(); in catch block