moving depth tracking to vallidator so it doesnt clog up main file