modify complexity computation