replaced dynamic inputs detection