changed errors found by @ChaosBelcebub