multi selector in attach function

older version must be up to date