add optional to static transition