repair pool save function