getting rid of checks while freeing