changed sdVar conditions with checkDeclaredVariab