update to correct output in panel