fixed "init" method