refine activity column code