updated with another method for debugging faults