added if for Fog