fixed passing of parameters