improved comparison for placeNote function using unique values