changing from .x , .y , .z to  [0] , [1] , [2]