added checks for hexbin