improvement to tile class