rebuild Method