move declaration as close as first use