update with fixed errors