remove unsed len variable