cleaning up tile generation