adding function scope to variables because duh.