functioning legend