units fix and compilation err