to work out errors