semi-working working
still need to apply to the right survey
working version