updated code with some figures for discussing proj direction