another try with something similiar to the first formula and smaller changes