updated how to use the code