function for calling LOOP and HILOWS