Issue11 implement PBC head support