consolidated tpat with sqpat and removed param

also added round random to carpat