cleanup entities