hopefully sped up the third pass