swapped e and w helpers