adding functions for transient analysis