removed nonsense tiling algorithm