implementation of LDAR program