alert code updated to index