fix compilating
add switch statements