fix typos/loose defines