removed bug which was causing w[0] to have a non zero value when stationary