broke NameError message building into private method