solved input domain problem