added prefix tracking in pretty_c