code cleanup RandomMouse