use inner function to remove faulty download