made primary selection work