fixed some printlns and random