edit method and enums