add tiles per zoom
refactor for amd