instead of exception. deprecated warning