changed vectors to use floats instead of ints