Major error has been solved some minor are left