passing values to factor