changes curs.alive() to curs.alive