output renewed, but in 3 some bugs