using getPositionFromMatrix method of vector rather that getPosition of matrix