fixing some fail math