fixing variable typo, and printing y, not what type y is