could move this up to start of method to fail faster