removed anon fun in record definition to support Elixir Record.extract