mobile letter function triggered at right points, now need to write the function