add edit and clip function