updated for pttype