remove unneeded err variable