use track to write the bed output