adding a unit parameter, to allow scaling the value