Checking by position of the statement END