commented adv functionality. Need to fix bugs for basic func first