process ps pk with BAD mask