made center vec more generic