improved tile math