fixed isRankConsistent, working on put as currently value is set for all on recursive path