temporary code for performance investigation