remove alert(). This function is valid