fixed minor bugs in parameter types