function declaration after struct definition