status codes
safer value checking