declare variable before it is used