moved vec2 function, fixed crash on pistol data