function declaration compiles successfully