shorten name
separate w_t computation to function