demap and check is working