messing with formation code; updated vector function names