modifying comments function