Revert "changed sdVar conditions with checkDeclaredVariab"

This reverts commit 81233d494cebdbcbe88dd7ec5e074e24e8f41873.