changed set function name to pset to avoid confusion