removed new method because of too much ram usage