optimizing ttable implemenation in PSD extract