fixed maht.max
fixed add
fix double e
add replace()