from both ends 2