moved LOGICAL, edited SelectCaseStmt