fix function syntax

Fix the function syntax