added else if block to try to find if a change occurs