added legend block