data structure and erlang modify