now reflect changes in keep function