minor fixes on edit