removed update function