implementing method to clear PMs