added first run check