update for changed data structure