updated range and mouse pointing