removing needless var assignment