updated vector api on bodies example