precompute pos piotr string
fix tests