add function to see if values are set