init code for level 5.1