seems to be working decently for all cell heights