randomness conquered. some tests still not implemented correclty