change tiler algorithm