now works with mouse to choose points