removing unused alert statement