both ends against the middle