parameterize functions