fix for vector size; use doubles