updated a function of ide.