fixing this slowsha, not fixed. cannot use in py2.7