edited end output