added new getKey Method