similarity code added