process changes (first working version)