finished implementing pastr and nt