change subtype input to enum