added color sampling