cleaned up generalise and removed general errorx