added selected flag