added legendObject