initilization with code