notes re mail and shuffle function