correct function syntax