almost done with erl