added debugging of parameters