altered random guess query, fixes #7