removed unnecessary header inclusion
removed double exit