format
add support of enum