added tiled pattern implementation