auto format and remove 1 deprecation warning