removed redundant applyNote function