fixed an issue with the function prototype