finish comment function