added basic legend