restore accidentally killed code