handle selected. recalculates wrong