added fresh algo