start of work on SML