fixed solver (temp try ... catch block)