Removing unrequired var assignment