added helper funciton for parameters