reviewed code
fixed tiled files