tyring to fix edit bug