converted to tile class,need to work out details