defining variables before blocks