finish greycomatrix which is the pain in the ass