edited defs and stimProtocol