adding detach as modifier