added repick functionality