added mode select