tweaking to color object. This is still not perfect. We could use more efficient ways here.