np code compression