fix compile error
add other formats