forgot to add exitReader at the end