improve appearance and trace functions