change ready to attached