change some erlang snippet