var should be at top and should use coma instead of multiple var