correct endif tag