optimize code for WIN386