fix extra return statement