method init