data selector functions working