added ps version function