clean up old tile code