moving depth into its own file.