adding convenient method to update cache