split body and depth tracking into two classes