generate union command