change newResult to one dimension, add case handling for last activity