fixing simple unit deprecation warnings