changed units index to what it was before to fix problem