Small function definition problem