use a method for keys