psuedocode for projected stats