cleaned up and added similarity