from main - one add and one edit