added codr lab logic