fix function syntax