changed psb script