added public private legend