add a new function for jedi