adjusted counter mistake for x[6]