adding panel.cor()