Fixed INPUT and OUTPUT