moved to depth rather then size for max depth