fixed and expanded projection formula