added the best editing function ever