eliminated some deprecation warnings when build target is >=8.0