added units calculation