added mosaic code