Problem with checking if notes and diameter exist -- rolling back to older way