adding dependency on input arr