move definition immediately before first using