didnt randomly initialize q.. now it does it