function fix in jname