copy this function twice to see the sonar