combine next and prev pointer