fixed new pastr locations algorithm