fixed old call to deprecated function