properly passing params in to methods