example ob vex function / not working