You can take a picture or label the wires before disconnecting them. This will help you remember their correct placement when it's time to reconnect them.