updated waterfall array checking method