endif correction