changed stdormant to be a tvar