forgot to take out alerts from function