change sample focus function to instead return the value inside