temporary SDM with 2 vars