used elixir to get data into objects