declare vars in beginning