cleans up schema