introduced a significant bug while trying to fix the performance to tcomppi