combinded code