realized recursive formular was incorrect