improve tile generator