fix function declaration