relocated function definition