added argument to say which update type to use