warning been done
bugs of detach has been done