merge pePreviouNextElement branch