make this more generic by passing this parameter.