added contig orientation code