error handling on person