fixed an error in original submission