a bit of error handling for names