optimize the processing of taking an activity