working out initial errors