added a noteOn method