function scopint

linted and scoped