trying to fix contract editing