wrong check for attaching to scope