add rank to array declarations