changing to ConventOres code