removed useless error return