[UPDATE] changed factor to scalar.