change all curly to end, and all alert to puts