added depth filtering, cleaned up format in general