changed to logic_vector