adding second level bocking of k loop