averange values for repetitions - runtime error :(
debuging