made containers inherit to access distance