merge seq code