consistency and error removing