fixed endif()