xf matrix manip