preparation for index+bg colors