works with function computes 0 + ... + 100