changed getLowerIndicies to static method