added save function for comments