added rubberbanding. will only do first 2 points