it was even possible to repair a dead body and restore its soul to it , though this could only be done immediately after death before any decomposition began , and if the injuries were not too extensive .