changed key to K and not S