attempted to get key class to work