merge the william code