change domain of inp and out