adjusted sample selection and observation color draw function