erlang:length is ok here