common keys function