minor errors solved still complete checking left