code reflection for params and selection