method of elastic weight