changed method names to fit elixir conventions