minor changes inselecting data