check adv data
check adv function
clean up