reverted models code changes