if already attached, reset data instead of passing