IBM1 model added null and better intialization