adding half finished reverse alternate node code