density table tool implementation