change ~calculate to ~wr