added calcualtion of lnnqc