adding function comments