added keys function