basic version of selection working (in masterstate)