update to double []