added method to remove entities