edit almost works but without db