working on XY scanning (ugh)