made sure edit works properly