removed exit struct, updated code to get exits.
outputting exits