working on the free error