changed deprecated jedi functions