more idiomatic elixir