sonar based tidying