added logic to remove non float values from array