solve the performance problem