added wrapping over dateline