still bugs present, found problems in depth calculations