fixing path of print results loop