logic error on edit