added minchar method