What's the meaning difference between these two statements: When i arrived, he had just arrived. When i arrived, he was just arrived. The first uses the past perfect and the second one simple past. So, are they both correct? Either in these case, is it better use just the past perfect?