Not really; we don't even know what you mean when you say "it does not work". How about posting the output so that we can see what the error is, and when it occurs?
It is also a good idea to avoid using variables (@Sresi etc) when submitting questions since it is very difficult to know what the variable contains.

You may also want to consult doc/subst.doc to find out about "?dist"
Lennart Nilsson
Karolinska Institutet
Stockholm, Sweden