update structure. still can't repaint properly.