fixed the lifesorter initialize function