a better block comparation