deleted alerts, added ready function