merged all codes