fixed doSM