fixed depth replacing condition