adding alert and removing prints