issue #2: we may integrate also constant functions