merge variables