error checking on sscanf