edit to directive