fixed error in mod 0