cleaned up alot of the redundant depthsense code