Treating thin film with uv radiation