minor errors solved