correction to styles of date type and function prototype