remove unneeded error check