fixing parameter derivation issue