fixed comment number function