add some failed attempts to speed up part of my code