fixing syntax in sonar_array