josh algorithm done, added Espresso