refactors save of parts to be compatible with warning