add comments function implemented