fixed exit sttaement