finished all the init codes
finished init