#1: initialize codes