cumulation to be more pythonic