better tile handling