activity code extraction