make sure we check whether the keys exist