add cleaning of float values to prevent indexing errors