first then attach