doing calculations right fixes all known problems
better check for bottom