making edit work