added selected code