modified the statement and block sema processing