added a hook for altering parameters