backup. work in progress. correctly computes w i think? testing not implemented
comments