adding back names argument, which was mistakenly deleted