can now vary 2 parameters directly from input boxes