no need to re-declare c and err