def _limitEntities(self, entities, maxi):
    entities_new = []
    for e in entities:
        if (e.boundaries[1] <= maxi):
            entities_new.append(e)
    return entities_new
def _limitEntities(self, entities, maxi):
    entities_new = []
    for e in entities:
        if (e.boundaries[1] <= maxi):
            entities_new.append(e)
    return entities_new