execute update if no error was occured, small rework