fix math
modify toString function