add comment str type in function