adding Mike Bostock's API usage