no more ugly alert statement