add try & catch in display