modify clap example (shifting still not working)