add try for error