add return code to distiguish clip criteria