fix function reference