removed unnecessary allocation