solved numerical problem and adapted algorithm and parameters accordingly