optimizing staging