fix output, and update