declaring variable before using