added combine helper function