fixed same as previous check to cache previous on first run