added helper function temlates for cv functions/methods