I figured it out on my own. I used the first code but this time I removed the sim card while doing it. Thanks anyways.