changed the algorithm; uses less memory