Pshtetc test race2

This code should be rewritten without loop