removed invalid throw error