optimized the activation record stuff