add const prefactors (C++ friendly)