use endif correctly!