added minmode