use callback function in elixir