remove extra entities