update manage function