removed diagonal entry restriction
quiet down one printf