remove index of scalar