improved output 2