change the way to get next pc and expect pc