check if keys changed