improving obj generation