solution of "clean-up-contracts-data"