finalize constants draft functionphipsi