integrating over parameters added