minor changes on solving systems