removed extra alert statements