add comment for function