added $processSample check for 2 postprocess additional functions