stronger typing for key