updated $basename