adding LOST appending correctly to output