remove params from element in loop