clean up defined types