free data correctly