Tuning the light by nanostructures