added unit variable