added pedal code