Function call error when using OPS function samples