small change to combine function