added references and parameter replacement

Signed-off-by: Jan Antolik <antolikjan@gmail.com>
added parameter references and parameter modifications