possible bugfix: removed [0] from loadtxt call