status update function-> the brute force one has been written