color coding elements by type