removal of call to alert()