remove loops and add catch no element