output fixing