bad code extraction