added write to output cover file