made it possible to pass type into Body constructor options