betti number bug fixed!!!!!