added method for checking spanning vectors