correct date function in comments