remove unnecessary allocation