fixed depth calculation