coordinate input working, replot added