Simplify parse
change param type
Separate generaTables
Refactory condition