update complain to erlang