removed the auto update function, this is better suited to the code that uses this function