clearing errors and fixes in numericality