quit function works,