more changes to mouse math