removed unused alert()