proper error check of argument in mainInterface