made vals private; added comment