change getSelected return array