insert notes and logical operator