pass options object instead of pass the params one by one