SWD and LWD explained