another attempt (still not TDA)