change mode, input is OK. just fix output and linkedlist.