modified coding and some hot keys