insertConstantAndDynamicValues now responsible for dynamic functions