added code to compare output with alea