how to get a code