put err value when key is missing