added exit when not working