added mode init