update basename to name
added missing comment