removed old update function